package com.shiliao.app.activity.index.entity;

import com.yimei.framework.base.serializer.JSONKey;
import com.yimei.framework.mvp.entity.BaseEntity;

import java.util.Comparator;

/**
 * Created by yinzhiqiang on 2018/4/20.
 */

public class WaitExamineEntity extends BaseEntity implements Comparator<WaitExamineEntity> {
    @JSONKey(keys = "content_id", type = String.class)
    public String id;//id

    @JSONKey(keys = "content_type", type = String.class)
    public String type;//内容

    @JSONKey(keys = "title", type = String.class)
    public String title;//内容

    @JSONKey(keys = "status", type = String.class)
    public String status;//内容


    @JSONKey(keys ="examin_id",type = String.class)
    public String examinId;

    @JSONKey(keys = "examin_result",type = Object.class)
    public Object examinResult;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getExaminId() {
        return examinId;
    }

    public void setExaminId(String examinId) {
        this.examinId = examinId;
    }

    public Object getExaminResult() {
        return examinResult;
    }

    public void setExaminResult(Object examinResult) {
        this.examinResult = examinResult;
    }

    @Override
    public int compare(WaitExamineEntity o1, WaitExamineEntity o2) {
        int i=Integer.parseInt(o1.getExaminId())-Integer.parseInt(o2.getExaminId());
        return i;
    }
}
